<include file="Public/head" />
<style type="text/css">
    .marks .marks-l{width:15%;height:100%;float:left;}
    .marks .marks-r{width:82%;height:100%;float:left;}
    .marks .marks-r span{width:100px;height:32px;line-height:32px;margin-left:20px;color:#333333;
                         background-color:#ccc;border: 1px solid #999999; float:left;display:block;}
    .tijiao-marks{margin-top: 30px;}
    .tijiao-marks input{
        background: #20ab4f none repeat scroll 0 0;border: 1px solid #20ab4f;border-radius: 3px;color: #fff;
        cursor: pointer;font-size: 14px; height: 30px;line-height: 30px;margin: 30px 10px;text-align: center;width: 170px;}
    .car_info{margin:10px 20px;}
    .car_info .car_no{width:100%;height:36px;margin-bottom:10px;}
    .car_info .car_no span{width:150px;height:36px;line-height:36px;display:block;float:left;background-color:#20ab4f;border:1px solid #FFF;color:#fff;text-align:center;border-radius:5px}
    .car_info table tr td{height:30px;text-align:left;font-size:12px;padding-left:10px;}
    .clear{clear:both;}
</style>
</head>
<include file="Public/common_header" />
<div class="mian">
    <include file="Public/sidebar"  menu="cyxs.xs" />

    <div class="mianR">
        <h3 class='cha'>
            <if condition="$list.car_status eq 3">
                销售成功查看
                <else />
                销售失败查看
            </if>
        </h3>
        <div class='car_info'>
            <div class='car_no'><span>车辆编号：{$list.car_no}</span></div>
            <div class='clear'></div>
            <table border='1' width='80%'>
                <tbody>
                    <tr>
                        <td colspan='4'><span  style='color:#20ab4f'>车辆信息</span></td>
                    </tr>
                    <tr>
                        <td>车型</td>
                        <td>{$list.car_model}</td>
                        <td>排放标准</td>
                        <td>{$list.emission}</td>
                    </tr>
                    <tr>
                        <td>初登日期</td>
                        <td>{$list.first_reg_date}</td>
                        <td>颜色</td>
                        <td>{$list.car_color}</td>
                    </tr>
                    <tr>
                        <td>表显里程（万公里）</td>
                        <td>{$list.pointer_mileage}</td>
                        <td>车况级别</td>
                        <td>{$list.chek_level}</td>
                    </tr>
                    <tr>
                        <td>车辆注册地</td>
                        <td>{$list.first_reg_city}</td>
                        <td>车牌号</td>
                        <td>{$list.chepai_hao}</td>
                    </tr>
                    <tr>
                        <td>车架号</td>
                        <td>{$list.vin}</td>
                        <td>销售价</td>
                        <td>{$list.reserve_price}</td>
                    </tr>
                <if condition="$list.car_status eq 3">
                    <tr>
                        <td>成交价</td>
                        <td colspan='3'>{$list.car_success_price}</td>
                    </tr>
                    <else />
                </if>
                </tbody>
            </table>
            <table border='1' width='80%' style='margin-top:20px;'>
                <tbody>
                    <tr>
                        <td colspan='4'><span style='color:#20ab4f'>车主信息</span></td>
                    </tr>
                    <tr>
                        <td>车主类型</td>
                        <td>{$list.owner_type_name}</td>
                        <if condition="$list.owner_type eq 1">
                            <td>车主姓名</td>
                            <td>{$list.seller_name}</td>
                            <else />
                            <td>公司名称</td>
                            <td>{$list.seller_name}</td>
                        </if>
                        <if condition="$list.owner_type eq 1">
                            <td>联系电话</td>
                            <td>{$list.phone}</td>
                            <else />
                            <td>联系人姓名</td>
                            <td>{$list.contact_person}</td>
                            <td>联系电话</td>
                            <td>{$list.phone}</td>
                        </if>
                    </tr>
                </tbody>
            </table>
            <table border='1' width='80%' style='margin-top:20px;'>
                <tbody>
                <if condition="$list.car_status eq 3">
                    <tr>
                        <td colspan='4'><span style='color:#20ab4f'>备注信息</span></td>
                    </tr>
                    <else />
                    <tr>
                        <td colspan='4'><span style='color:#20ab4f'>失败原因</span></td>
                    </tr>
                </if>
                <tr>
                    <td colspan="4">
                        {$list.reason}
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="yongBtn">
            <!--<input type="button" value="确定" class="queding" name="fail_submit"/>-->
            <input name="return_reset" type="reset" class="quxiao" value="返回" />
        </div>
    </div>
    <div class="clear"></div>
    <script type="text/javascript">
        function get_list(car_status) {
            $.get("{:U('CarShow/car_list')}?car_status=" + car_status, '', function (data) {
                $("#listBox").html(data);
            }, "html");
            if (car_status == '1') {
                $("#car_marks").hide();
                $('.cheyuan1').removeClass('clearfix');
                $('.cheyuan2').css('float', 'none');
            } else {
                $("#car_marks").show();
                $('.cheyuan1').addClass('clearfix');
                $('.cheyuan2').css('float', 'left');
            }
            ;
        }
        $("input[name='return_reset']").on("click", function () {
            setTimeout(function () {
                window.location.href = "{:U('CarShow/index')}"+'?car_status='+{$list.car_status}+"&p="+{$p};
            }, 500);
        })
    </script>
    <include file="Public/foot" />
